package com.sky.edumanageapi.user.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("user")
public class UserPO {
    @ApiModelProperty(value = "用户id")
    @TableId(type = IdType.AUTO)
    Long userId;

    @ApiModelProperty(value = "用户名")
    String username;

    @ApiModelProperty(value = "密码")
    String password;

    @ApiModelProperty(value = "邮箱")
    String email;

    @ApiModelProperty(value = "手机号")
    String phone;

    @ApiModelProperty(value = "头像URL")
    String avatar;

    @ApiModelProperty(value = "昵称")
    String nickname;

    @ApiModelProperty(value = "性别")
    Integer gender;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    Date updateTime;

    @ApiModelProperty(value = "状态")
    Integer status;
}
